package com.daisuxia.constant;

import java.util.Map;

import com.daisuxia.back.utils.SysCacheUtils;
import com.daisuxia.web.pojo.BackConfigParams;

/**
 * Created by IntelliJ IDEA
 * User : zhangsh
 * Date : 2016年12月30日
 */
public class LianLianConstant {

    public static final String SUCCESS_CODE = "0000";
    public static final String TYPE = "10";
    public static final String VERSION = "2.0";
    public static final String LOGOTP = "1";
    public static final String IDTYPE = "1";
    public static final String SIGNTP = "md5";
    public static final String ENCTP_YES = "1";
    public static final String ENCTP_NO = "0";


    public static String getSignGrantPath(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("SIGN_GRANT_PATH");
    }

    public static String getGrantPath(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("GRANT_PATH");
    }

    public static String getDebitPath(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("DEBIT_PATH");
    }

    public static String getOidPartner(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("OID_PARTNER");
    }
    
    public static String getQueryResult(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("QUERY_RESULT");
    }

    public static String getKey(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.LIANLIAN);
        return keys.get("LIANLIAN_SIGN");
    }


}
